import React, { Suspense } from 'react'
import { BrowserRouter, useRoutes } from 'react-router-dom'
import { routes } from './routes'


const Router: React.FC = () => {
	const RouterView = () => useRoutes(routes)
	return (
		<BrowserRouter>
			<Suspense>
				<RouterView></RouterView>
			</Suspense>
		</BrowserRouter>
	)
}


export default Router